package com.panopset.io;

import java.io.File;

public class Util {
    
    public Util() {}

    /**
     * Global replace text in a directory.
     * @param path Top level directory.  Subdirectories will also be traversed.
     * @param from Replace String.
     * @param to Replacement String.
     * @param extension File extension, ie: &quot;.java&quot;.
     */
    public static void directoryReplace(String path, String from, String to, String extension) {
        new GlobalReplace(new File(path), from, to, extension).exec();
    }

}
